﻿<button @onclick="IncreaseCount">Click to render again</button>

@code {
    public int RenderCount { get; private set; }

    void IncreaseCount()
    {
	    // Left empty on purpose
    }

    protected override void OnAfterRender(bool firstRender) => RenderCount++;
}